package com.hww.service;


import com.hww.annotation.Autowired;
import com.hww.annotation.Component;

/**
 * @author: heweiwei
 * @time: 2025/4/28 20:30
 * @description:
 */
@Component
public class OrderService {

    private UserInterface userService;

    @Autowired
    public OrderService(UserInterface userService) {
        this.userService = userService;
    }

    public void placeOrder() {
        userService.sayHello();
        System.out.println("Placing order...");
    }
}
